package ontime

type Option func(o *OnTime)

func WithLogger(logger Logger) Option {
	return func(o *OnTime) {
		o.logger = logger
	}
}

//func WithSave(save bool) Option {
//	return func(o *OnTime) {
//		o.save = save
//	}
//}

func WithBefore(f func()) Option {
	return func(o *OnTime) {
		o.beforeRun = f
	}
}

func WithAfter(f func([]*Entry)) Option {
	return func(o *OnTime) {
		o.afterRun = f
	}
}
